[QEMU] A better build fix for qemu-dm.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Sat, 23 Sep 2006 15:23:11 +0000 (16:23 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Sat, 23 Sep 2006 15:23:11 +0000 (16:23 +0100)
This extends 11592:5c58df8c78851d47bf7130308895c4e0ac5fa5ad
Signed-off-by: Keir Fraser <keir@xensource.com>
tools/ioemu/usb-linux.c

index 6ab4782d83c6c885a1eab7f1150e332ed75fe204..ef601797041a89388bddd29340c647a79d072d68 100644 (file)
@@ -26,6 +26,9 @@
 #if defined(__linux__)
 #include <dirent.h>
 #include <sys/ioctl.h>
+/* Some versions of usbdevice_fs.h need __user to be defined for them.   */
+/* This may (harmlessly) conflict with a definition in linux/compiler.h. */
+#define __user
 #include <linux/usbdevice_fs.h>
 #include <linux/version.h>